import random


def round_random(self):
        pass


class Chrome:
    """
    for encode object to chromesome
    """
    def __init__(self, chrome_len, *genetic_map, **options):
        self.C_LEN = chrome_len
        self.gene_map = genetic_map
        self.gene_len = len(genetic_map)


    def random_gen(self):
        pass




class Genetics:
    def __init__(self, chrome, random_rate=0.7, mutation_rate=0.001):
        self.random_rate = random_rate
        self.mutation_rate = mutation_rate
        self.chrome_len = chrome.C_LEN
        self.pop_len = chrome.C_LEN * 2

    def crossover(self):
        pass

    def select(self):
        pass

